#!/bin/bash
SCRIPT_BASE_DIR=$( dirname "${BASH_SOURCE[0]}" )
source "${SCRIPT_BASE_DIR}/common/ip_utils.sh"

function usage() {
  echo "Usage:"
  echo "  $( basename $0 ) <if_dev>"
  echo ""
  echo -e "  Display ip v4 address of Dev <if_dev>"
}

if [ $# -ne 1 ]
then
  usage
  exit -1
fi

dev=$1
ip=$( ipv4_addr "${dev}" )
echo ${ip}
